<template>
  <div>
    <contentList type="indexList" :editBtn="true" :addBtn="true" :delectBtn="true"></contentList>
  </div>
  <!-- <div class="app-container">
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addOrUpdateHandle('add')" v-hasPermi="['deliver:region:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" :disabled="single" plain icon="el-icon-edit" size="mini" @click="addOrUpdateHandle()" v-hasPermi="['deliver:region:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" :disabled="multiple" plain icon="el-icon-delete" size="mini" @click="deleteHandle" v-hasPermi="['deliver:region:remove']">删除</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getDataList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="dataList" @selection-change="dataListSelectionChangeHandle">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="id" align="center" prop="id" />
      <el-table-column label="标题" align="center" prop="qrTitle" />
      <el-table-column label="二维码内容" align="center" prop="qrContent" />
      <el-table-column label="开关" align="center" prop="status">
        <template slot-scope="scope">
          <el-switch :active-value="1" :inactive-value="0" v-model="scope.row.status" @change="changeSwitch(scope.row)"></el-switch>
        </template>
      </el-table-column>
      <el-table-column label="是否需要推广人员" align="center" prop="needBd">
        <template slot-scope="scope">
          <el-switch :active-value="1" :inactive-value="0" v-model="scope.row.needBd" @change="changeSwitch(scope.row)"></el-switch>
        </template>
      </el-table-column>
      <el-table-column label="开始时间" align="center" prop="startTime" />
      <el-table-column label="结束时间" align="center" prop="endTime" />
      <el-table-column label="是否有时效性" align="center" prop="timeEffectiveSwitch">
        <template slot-scope="scope">
          <el-switch :active-value="1" :inactive-value="0" v-model="scope.row.timeEffectiveSwitch" @change="changeSwitch(scope.row)"></el-switch>
        </template>
      </el-table-column>
      <el-table-column label="时效时长（分钟）" align="center" prop="timeEffectiveDuration" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-s-grid" @click="cabinetHandle(scope.row)">查看智能柜</el-button>
          <el-button size="mini" type="text" icon="el-icon-edit" @click="addOrUpdateHandle(scope.row)" v-hasPermi="['deliver:region:edit']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="deleteHandle(scope.row.id)" v-hasPermi="['deliver:region:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total>0" :total="total" :current-page.sync="pageNum" :page.sync="pageNum" :limit.sync="pageSize" @pagination="query" />

    弹窗, 新增 / 修改
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
    查看智能柜弹窗
    <cabinetList v-if="cabinetListVisible" ref="cabinetList"></cabinetList>
  </div> -->
</template>

<script>

import ContentList from '../contentList.vue'

export default {
  data() {
    return {

    };
  },
  components: {
    ContentList
  },
  methods: {}
};
</script>
